﻿using System;
using System.Collections.Generic;

namespace UTS_Subject_Enrolment_System.Model
{
    public enum Grade
    {
        Fail,
        Pass = 50,
        Credit = 65,
        Distinction = 75,
        HighDistinction = 85
    }
    
    public enum SubjectStatus
    {
        UnderRequested,
        Enrolled,
        Completed,
        Incompleted
    }
    
    public class Subject
    {
        public int ID { get; private set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public int Mark { get; set; }
        public Grade Result { get; set; }
        public SubjectStatus Status { get; set; }
        public int Availability { get; set; }
        public int NumOfAttempt { get; set; }

        public bool PrerequisitRevoked { get; set; }
        public List<Subject> Prerequisits { get; private set; } //when null list, there is no requisits


        public bool MeetPrerequisites()
        { 
            return false; 
        }

    }
}
